package InnerClass.InnerClassDemo003;

/**
 * ClassName:Outer
 * Package:InnerClass.InnerClassDemo003
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/1/26-0:43
 * @Version:v1.0
 */
public class Outer {
    String name;

    private class Inner {
        static int a = 10;
    }

    //外部类编写方法,对外提供内部类对象
    public Inner getInstance() {
        return new Inner();
    }
}
